<ion-header>
    <ion-navbar color="orange">
        <ion-title>
            我的收藏{{titleType}}
        </ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    <div class="ht-100 ht-overflow ht-padding-tb ht-border-bottom" padding-left padding-right *ngFor="let item of lists; let i=index;">

        <!-- 任务开始 -->
        <div *ngIf="kind == 'mission'">
            <div class="ht-100 ht-overflow ht-333 ht-padding-bottom5 ht-line-20" (click)="goTaskDetail(item.amoy_id)">
                <div class="flex flex-line-between margin-bottom-5">
                    <span class="">{{item.amoy_sn}}</span>
                    <span class="">￥{{item.reward_price}}</span>
                </div>
                <div>{{item.auto_content}}</div>
            </div>
            <div class="flex flex-line-between ht-100 ht-overflow ht-999 ht-text-right">
                <span class="" *ngIf="kind == 'mission'" [ngClass]="{'pr-yjd':item.mission_status == 1,'pr-djd':item.mission_status == 0,'pr-ywc':item.mission_status == 2,'pr-yqx':item.mission_status == 3}">{{item.mission_status_name}}</span>
                <i class="ht-padding-l5" (click)="delCollect(item.amoy_id, i)">删除</i>
            </div>
        </div>
        <!-- 任务结束 -->

        <!-- 信息开始 -->
        <div *ngIf="kind == 'information'">
            <div class="ht-100 ht-overflow ht-333 ht-padding-bottom5 ht-line-20" (click)="goInformationDetail(item.amoy_id)">
                <div class="flex flex-line-between margin-bottom-5">
                    <span class="">{{item.amoy_sn}}</span>
                </div>
                <div>{{item.auto_content}}</div>
            </div>
            <div class="flex flex-line-end">
                <i class="ht-padding-l5 ht-999" (click)="delCollect(item.amoy_id, i)">删除</i>
            </div>
        </div>
        <!-- 信息结束 -->

        <!-- 简历开始 -->
        <div *ngIf="kind == 'resume'" class="ht-overflow">
            <div class="list-item flex-line-between flex-align-center ht-float-left ht-85" (click)="resumeDetail(item['resume_id'])">
                <span class="job-status">{{item['job_status']}}</span>
                <span class="sub-nickname">{{item['name']}}</span>
                <span class="job-type">{{item['target_work']}}</span>
                <span class="age">{{item['age']}}岁</span>
                <span class="work-age">厨龄{{item['working_age']}}</span>
                
            </div>
            <div class="flex flex-line-end ht-float-right ht-15">
                    <i class="ht-padding-l5 ht-999" (click)="delCollect(item['resume_id'],i)">删除</i>
                </div>
        </div>
        <!-- 简历结束 -->

        <!-- 开店指南开始 -->
        <div *ngIf="kind == 'guide'">
            <!-- 主内容开始 -->
            <!-- 小 -->
            <div class="ht-overflow">
                <div class="ht-30 ht-float-left" (click)="goDetail(item.type_id,item.amoy_id)">
                    <img [src]="util.parseImageUrl(item.cover[0])" class="ss-img2">
                </div>
                <div class="ht-float-left ht-overflow  ht-70" padding-left>
                    <div class="ht-font-14 ss-title" (click)="goDetail(item.type_id,item.amoy_id)">
                        {{item.title}}
                    </div>
                    <div class="ht-overflow ht-100">
                        <div class="ht-float-right ht-999 ht-font-14">
                            <div style="display: inline-block;float: left;position: absolute;left: 135px">淘鲜生</div>
                            <div class="ht-float-left ht-padding-lr ht-line-20 ht-font-15">{{item.create_time}}</div>
                            <div class="ht-float-left ht-padding-l5" (click)="comment.showComment(item.amoy_id)">
                                <span>
                                    <i class="far fa-comment"></i> 评论</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 主内容结束 -->
        </div>

        <!-- 开店指南结束 -->
    </div>
    <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
        <ion-infinite-scroll-content></ion-infinite-scroll-content>
    </ion-infinite-scroll>
</ion-content>
<comment #comment [showType]="false"></comment>